package com.engine4cloud.tdf.supervision.dto.create;

import com.engine4cloud.tdf.common.core.constant.enums.SignTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 矫正对象现场签到
 *
 * @author wenjie
 * @date 2024-07-24 17:23:37
 */
@Data
@Schema(description = "矫正对象现场签到")
public class RcglOccasionSignCreateDTO implements Serializable {

    /**
     * 身份证号
     */
    @Schema(description = "身份证号", example = "610***************")
    @NotBlank(message = "身份证号不能为空")
    private String identity;

    /**
     * 设备id
     */
    @Schema(description = "设备id", example = "77146658")
    @NotBlank(message = "设备id不能为空")
    private String deviceId;

    /**
     * 签到类型
     */
    @Schema(description = "签到类型", example = "FACE_SIGN")
    @NotNull(message = "签到类型不能为空")
    private SignTypeEnum signType;

    /**
     * 签到图片存放路径
     */
    @Schema(description = "签到图片存放路径", example = "张三.png")
    private String signPhotoUrl;

    /**
     * 签到地址
     */
    @Schema(description = "签到地址", example = "**省**市**县**镇**村**号")
    @NotBlank(message = "签到地址不能为空")
    private String signAddress;

    /**
     * 签到时间
     */
    @Schema(description = "签到时间", example = "2024-07-01 00:00:00")
    @NotNull(message = "签到时间不能为空")
    private LocalDateTime signTime;
}